package ltd.newbee.mall.service.impl;

import ltd.newbee.mall.controller.vo.NewBeeMallIndexCategoryVO;
import ltd.newbee.mall.controller.vo.SearchPageCategoryVO;
import ltd.newbee.mall.dao.GoodsCategoryMapper;
import ltd.newbee.mall.entity.GoodsCategory;
import ltd.newbee.mall.service.NewBeeMallCategoryService;
import ltd.newbee.mall.util.PageQueryUtil;
import ltd.newbee.mall.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NewBeeMallCategoryServiceImpl implements NewBeeMallCategoryService {
    @Autowired
    private GoodsCategoryMapper goodsCategoryMapper;
    @Override
    public PageResult getCategorisPage(PageQueryUtil pageUtil) {
        return null;
    }

    @Override
    public String saveCategory(GoodsCategory goodsCategory) {
        return null;
    }

    @Override
    public String updateGoodsCategory(GoodsCategory goodsCategory) {
        return null;
    }

    @Override
    public GoodsCategory getGoodsCategoryById(Long id) {
        return null;
    }

    @Override
    public Boolean deleteBatch(Integer[] ids) {
        return null;
    }

    @Override
    public List<NewBeeMallIndexCategoryVO> getCategoriesForIndex() {
        return null;
    }

    @Override
    public SearchPageCategoryVO getCategoriesForSearch(Long categoryId) {
        return null;
    }

    @Override
    public List<GoodsCategory> selectByLevelAndParentIdsAndNumber(List<Long> parentIds, int categoryLevel) {

        return goodsCategoryMapper.selectByLevelAndParentIdsAndNumber(parentIds, categoryLevel,0);
    }
}
